/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const sysRouter = {
  path: '/sys',
  component: Layout,
  redirect: '/permission/page',
  alwaysShow: true,
  meta: {
    title: '系统管理',
    icon: 'lock'
  },
  name: 'Sys',
  children: [
    {
      path: '/sys/resource/index',
      component: () => import('@/views/sys/resource/index'),
      name: 'SysResource',
      meta: {
        title: '资源管理',
        icon: 'lock'
      }
    }, {
      path: '/sys/resource/add',
      component: () => import('@/views/sys/resource/add'),
      name: 'SysResourceAdd', hidden: true,
      meta: {
        title: '新增资源',
        icon: 'lock'
      }
    }, {
      path: '/sys/resource/update',
      component: () => import('@/views/sys/resource/update'),
      name: 'SysResourceUpdate', hidden: true,
      meta: {
        title: '修改资源',
        icon: 'lock'
      }
    },
    {
      path: '/sys/role/index',
      component: () => import('@/views/sys/role/index'),
      name: 'SysRole',
      meta: {
        title: '角色管理',
        icon: 'lock'
      }
    }, {
      path: '/sys/role/add',
      component: () => import('@/views/sys/role/add'),
      name: 'SysRoleAdd', hidden: true,
      meta: {
        title: '新增角色',
        icon: 'lock'
      }
    }, {
      path: '/sys/role/update',
      component: () => import('@/views/sys/role/update'),
      name: 'SysRoleUpdate', hidden: true,
      meta: {
        title: '修改角色',
        icon: 'lock'
      }
    },
    {
      path: '/sys/user/index',
      component: () => import('@/views/sys/user/index'),
      name: 'SysUser',
      meta: {
        title: '用户管理',
        icon: 'lock'
      }
    }, {
      path: '/sys/user/add',
      component: () => import('@/views/sys/user/add'),
      name: 'SysUserAdd', hidden: true,
      meta: {
        title: '新增用户',
        icon: 'lock'
      }
    }, {
      path: '/sys/user/update',
      component: () => import('@/views/sys/user/update'),
      name: 'SysUserUpdate', hidden: true,
      meta: {
        title: '修改用户',
        icon: 'lock'
      }
    },
    {
      path: '/sys/app/index',
      component: () => import('@/views/sys/app/index'),
      name: 'SysApp',
      meta: {
        title: '应用管理',
        icon: 'lock'
      }
    }, {
      path: '/sys/app/add',
      component: () => import('@/views/sys/app/add'),
      name: 'SysAppAdd', hidden: true,
      meta: {
        title: '新增应用',
        icon: 'lock'
      }
    }, {
      path: '/sys/app/update',
      component: () => import('@/views/sys/app/update'),
      name: 'SysAppUpdate', hidden: true,
      meta: {
        title: '修改应用',
        icon: 'lock'
      }
    }, {
      path: '/sys/app/info',
      component: () => import('@/views/sys/app/info'),
      name: 'SysAppInfo', hidden: true,
      meta: {
        title: '查看应用',
        icon: 'lock'
      }
    },
    {
      path: '/sys/apitype/index',
      component: () => import('@/views/sys/apitype/index'),
      name: 'SysApitype',
      meta: {
        title: '接口类型管理',
        icon: 'lock'
      }
    },
    {
      path: '/sys/apitype/add',
      component: () => import('@/views/sys/apitype/add'),
      name: 'SysApitypeAdd', hidden: true,
      meta: {
        title: '新增类型接口',
        icon: 'lock'
      }
    },
    {
      path: '/sys/apitype/update',
      component: () => import('@/views/sys/apitype/update'),
      name: 'SysApitypeUpdate', hidden: true,
      meta: {
        title: '修改接口类型',
        icon: 'lock'
      }
    },
    {
      path: '/sys/api/index',
      component: () => import('@/views/sys/api/index'),
      name: 'SysApi',
      meta: {
        title: '接口管理',
        icon: 'lock'
      }
    },
    {
      path: '/sys/api/add',
      component: () => import('@/views/sys/api/add'),
      name: 'SysApiAdd', hidden: true,
      meta: {
        title: '新增接口',
        icon: 'lock'
      }
    },
    {
      path: '/sys/api/update',
      component: () => import('@/views/sys/api/update'),
      name: 'SysApiUpdate', hidden: true,
      meta: {
        title: '修改接口',
        icon: 'lock'
      }
    }
  ]
}

export default sysRouter
